Integrand size = 12, antiderivative size = 66 \[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=-\frac {\cosh \left (a+b x^2\right )}{x}-\frac {1}{2} \sqrt {b} e^{-a} \sqrt {\pi } \text {erf}\left (\sqrt {b} x\right )+\frac {1}{2} \sqrt {b} e^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5435, 5406, 2235, 2236} \[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=-\frac {1}{2} \sqrt {\pi } e^{-a} \sqrt {b} \text {erf}\left (\sqrt {b} x\right )+\frac {1}{2} \sqrt {\pi } e^a \sqrt {b} \text {erfi}\left (\sqrt {b} x\right )-\frac {\cosh \left (a+b x^2\right )}{x} \]
[In]
[Out]
Rule 2235
Rule 2236
Rule 5406
Rule 5435
Rubi steps \begin{align*} \text {integral}& = -\frac {\cosh \left (a+b x^2\right )}{x}+(2 b) \int \sinh \left (a+b x^2\right ) \, dx \\ & = -\frac {\cosh \left (a+b x^2\right )}{x}-b \int e^{-a-b x^2} \, dx+b \int e^{a+b x^2} \, dx \\ & = -\frac {\cosh \left (a+b x^2\right )}{x}-\frac {1}{2} \sqrt {b} e^{-a} \sqrt {\pi } \text {erf}\left (\sqrt {b} x\right )+\frac {1}{2} \sqrt {b} e^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x\right ) \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.06 \[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=\frac {-2 \cosh \left (a+b x^2\right )+\sqrt {b} \sqrt {\pi } x \text {erf}\left (\sqrt {b} x\right ) (-\cosh (a)+\sinh (a))+\sqrt {b} \sqrt {\pi } x \text {erfi}\left (\sqrt {b} x\right ) (\cosh (a)+\sinh (a))}{2 x} \]
[In]
[Out]
Time = 0.05 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.06
method | result | size |
risch | \(-\frac {{\mathrm e}^{-a} {\mathrm e}^{-b \,x^{2}}}{2 x}-\frac {\operatorname {erf}\left (x \sqrt {b}\right ) \sqrt {b}\, \sqrt {\pi }\, {\mathrm e}^{-a}}{2}-\frac {{\mathrm e}^{a} {\mathrm e}^{b \,x^{2}}}{2 x}+\frac {{\mathrm e}^{a} b \sqrt {\pi }\, \operatorname {erf}\left (\sqrt {-b}\, x \right )}{2 \sqrt {-b}}\) | \(70\) |
meijerg | \(\frac {i \cosh \left (a \right ) \sqrt {\pi }\, b \sqrt {2}\, \left (-\frac {2 \sqrt {2}\, {\mathrm e}^{b \,x^{2}}}{\sqrt {\pi }\, x \sqrt {i b}}-\frac {2 \sqrt {2}\, {\mathrm e}^{-b \,x^{2}}}{\sqrt {\pi }\, x \sqrt {i b}}-\frac {2 \sqrt {2}\, \sqrt {b}\, \operatorname {erf}\left (x \sqrt {b}\right )}{\sqrt {i b}}+\frac {2 \sqrt {2}\, \sqrt {b}\, \operatorname {erfi}\left (x \sqrt {b}\right )}{\sqrt {i b}}\right )}{8 \sqrt {i b}}+\frac {\sinh \left (a \right ) \sqrt {\pi }\, b \sqrt {2}\, \left (\frac {2 \sqrt {2}\, \sqrt {i b}\, {\mathrm e}^{-b \,x^{2}}}{\sqrt {\pi }\, x b}-\frac {2 \sqrt {2}\, \sqrt {i b}\, {\mathrm e}^{b \,x^{2}}}{\sqrt {\pi }\, x b}+\frac {2 \sqrt {i b}\, \sqrt {2}\, \operatorname {erf}\left (x \sqrt {b}\right )}{\sqrt {b}}+\frac {2 \sqrt {i b}\, \sqrt {2}\, \operatorname {erfi}\left (x \sqrt {b}\right )}{\sqrt {b}}\right )}{8 \sqrt {i b}}\) | \(219\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 183 vs. \(2 (48) = 96\).
Time = 0.25 (sec) , antiderivative size = 183, normalized size of antiderivative = 2.77 \[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=-\frac {\sqrt {\pi } {\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) + x \cosh \left (b x^{2} + a\right ) \sinh \left (a\right ) + {\left (x \cosh \left (a\right ) + x \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt {-b} \operatorname {erf}\left (\sqrt {-b} x\right ) + \sqrt {\pi } {\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) - x \cosh \left (b x^{2} + a\right ) \sinh \left (a\right ) + {\left (x \cosh \left (a\right ) - x \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt {b} \operatorname {erf}\left (\sqrt {b} x\right ) + \cosh \left (b x^{2} + a\right )^{2} + 2 \, \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right ) + \sinh \left (b x^{2} + a\right )^{2} + 1}{2 \, {\left (x \cosh \left (b x^{2} + a\right ) + x \sinh \left (b x^{2} + a\right )\right )}} \]
[In]
[Out]
\[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=\int \frac {\cosh {\left (a + b x^{2} \right )}}{x^{2}}\, dx \]
[In]
[Out]
none
Time = 0.18 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.83 \[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=-\frac {1}{2} \, {\left (\frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {b} x\right ) e^{\left (-a\right )}}{\sqrt {b}} - \frac {\sqrt {\pi } \operatorname {erf}\left (\sqrt {-b} x\right ) e^{a}}{\sqrt {-b}}\right )} b - \frac {\cosh \left (b x^{2} + a\right )}{x} \]
[In]
[Out]
\[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=\int { \frac {\cosh \left (b x^{2} + a\right )}{x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cosh \left (a+b x^2\right )}{x^2} \, dx=\int \frac {\mathrm {cosh}\left (b\,x^2+a\right )}{x^2} \,d x \]
[In]
[Out]